﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/User.Master" AutoEventWireup="true" CodeBehind="AdminMain.aspx.cs" Inherits="CRMWeb.Pages.Admin.AdminMain" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:content id="Content2" contentplaceholderid="ContentPlaceHolder1" runat="server">
    <div class="admin_images">
        <ul>
            <li>
                <a href="#" onclick="openBasicDataMaitainance()">
                    <img id="img3" src="../../Media/Download_icon.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Basic Data Maitainance </div>
            </li>
            <li style="display: none">
                <a href="javascript:void(0)" onclick="OpenLastResultDialog()">
                    <img id="imgLastResult" src="../../Media/LastResult.jpg" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Last Result</div>
            </li>
            <li>
                <a href="javascript:void(0)" onclick="OpenGroupDialog()">
                    <img id="img35" src="../../Media/contents_img.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Group</div>
            </li>


            <li>
                <a href="javascript:void(0)" onclick="OpenNoticeDialog()">
                    <img id="img9" src="../../Media/noticeboard.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Notice</div>
            </li>

            <li>
                <a href="#" onclick="OpenBusinessRoleDialog()">
                    <img id="img36" src="../../Media/user-group-icon.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Business Logo</div>
            </li>

            <li style="display: none">
                <a href="#" onclick="OpenOutSourceLenderDialog()">
                    <img id="img6" src="../../Media/Outsource.jpg" height="100" width="104" />
                </a>
                <br />
                <div class="icon_name">OutSource Lender</div>
            </li>
            <li style="display: none">
                <a href="#" onclick="OpenReferrerDialog()">
                    <img id="img7" src="../../Media/metacontact_img.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Referrer</div>
            </li>
            <li style="display: none">
                <a href="#" onclick="OpenAssessmentLasResultDialog();">
                    <img id="img8" src="../../Media/Assessment-History.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Assessment LastResult</div>
            </li>


        </ul>
        <ul>
            <li>
                <a href="javascript:void(0)" onclick="OpenEmailDialog()">
                    <img id="img1" src="../../Media/mailnew_img.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Email Template</div>
            </li>
            <li>
                <a href="javascript:void(0)" onclick="OpenSmsDialog()">
                    <img id="img2" src="../../Media/folder_with_file.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">SMS Template</div>
            </li>

            <li>
                <a href="#" onclick="OpenDualTemplateDialog()">
                    <img id="img4" src="../../Media/redhat-starthere_img.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Dual Template</div>
            </li>

            <li>
                <a href="#" onclick="OpenSMSCategory()">
                    <img id="img15" src="../../Media/access_point.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">SMS Template Category</div>
            </li>
            <li>
                <a href="#" onclick="OpenEmailCategory()">
                    <img id="img16" src="../../Media/connect_to_database.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Email Template Category </div>
            </li>
            <li>
                <a href="#" onclick="OpenDualCategory()">
                    <img id="img5" src="../../Media/database_img.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Dual Template Category </div>
            </li>


            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img17" src="../../Media/Documents_Black.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 12</div>
            </li>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img18" src="../../Media/Download_icon.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 13</div>
            </li>
        </ul>
        <ul>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img10" src="../../Media/HD_img.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 14</div>
            </li>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img11" src="../../Media/Desktop_img.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 15</div>
            </li>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img12" src="../../Media/knode2_img.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 16</div>
            </li>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img13" src="../../Media/Run_img.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 17</div>
            </li>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img14" src="../../Media/Help-and-support_img.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 18</div>
            </li>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img19" src="../../Media/Flash Disk.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 19</div>
            </li>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img20" src="../../Media/Library_Black.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 20</div>
            </li>
        </ul>
        <ul>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img21" src="../../Media/Applications_Black_Alt.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 21</div>
            </li>

            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img22" src="../../Media/Files-Word.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 22</div>
            </li>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img23" src="../../Media/Sites_Black.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 23</div>
            </li>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img24" src="../../Media/internet-grey_icon.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 24</div>
            </li>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img25" src="../../Media/Movies_Black.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 25</div>
            </li>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img26" src="../../Media/Desktop_Black.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 26</div>
            </li>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img27" src="../../Media/Network-Folder.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 27</div>
            </li>
        </ul>
        <ul>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img28" src="../../Media/pdf_icon.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 28</div>
            </li>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img29" src="../../Media/network-grey.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 29</div>
            </li>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img30" src="../../Media/Developer_Black.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 30</div>
            </li>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img31" src="../../Media/folder-network.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 31</div>
            </li>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img32" src="../../Media/Bookmarks_Black.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 32</div>
            </li>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img33" src="../../Media/folder-image-people.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 33</div>
            </li>
            <li style="display: none;">
                <a href="#" onclick="">
                    <img id="img34" src="../../Media/modem2.png" height="100" width="100" />
                </a>
                <br />
                <div class="icon_name">Label 34</div>
            </li>
        </ul>
    </div>

    <script type="text/javascript">
        fnLeftNavSelected('A2');

        //Set page title
        $(document).ready(function () {
            document.title = "CRM - Admin";
        });

        //Open popup in center
        function PopupWindowCenter(URL, title, w, h) {
            var left = (screen.width / 2) - (w / 2);
            var top = (screen.height / 2) - (h / 2);
            var strfeatures = 'width=' + w + ', height= ' + h + ', top=' + top + ',left=' + left;
            var newWin = window.open(URL, title, strfeatures);
        }

        //Open different popup
        function OpenLastResultDialog() {
            PopupWindowCenter("/Pages/Admin/LastResult.aspx", "Morgan CRM", 600, 380);
        }
        function OpenGroupDialog() {
            PopupWindowCenter("/Pages/Admin/Group.aspx?Company=" + getCookie("Com") + "&Theme=" + getCookie("Theme"), "Morgan CRM", 1100, 650);
        }
        function OpenEmailDialog() {
            PopupWindowCenter("/Pages/Admin/EMailTemplate.aspx?Company=" + getCookie("Com") + "&Theme=" + getCookie("Theme"), "Morgan CRM2", 800, 750);
        }
        function OpenSmsDialog() {
            PopupWindowCenter("/Pages/Admin/SMSTemplate.aspx?Company=" + getCookie("Com") + "&Theme=" + getCookie("Theme"), "Morgan CRM3", 800, 750);
        }
        function OpenDualTemplateDialog() {
            PopupWindowCenter("/Pages/Admin/DualTemplate.aspx?Company=" + getCookie("Com") + "&Theme=" + getCookie("Theme"), "Morgan CRM1", 800, window.innerHeight);
        }

        function OpenOutSourceLenderDialog() {
            PopupWindowCenter("/Pages/Admin/OutSourceLender.aspx", "Morgan CRM", 600, 380);
        }

        function OpenReferrerDialog() {
            PopupWindowCenter("/Pages/Admin/Referrer.aspx", "Morgan CRM", 600, 380);
        }

        function OpenAssessmentLasResultDialog() {
            PopupWindowCenter("/Pages/Admin/AssessmentLasResult.aspx", "Morgan CRM", 600, 380);
        }
        function OpenSMSCategory() {
            PopupWindowCenter("/Pages/Admin/TemplateCategory.aspx?type=SMS&Company=" + getCookie("Com") + "&Theme=" + getCookie("Theme"), "Morgan CRM6", 650, 300);
        }

        function OpenEmailCategory() {
            PopupWindowCenter("/Pages/Admin/TemplateCategory.aspx?type=EMail&Company=" + getCookie("Com") + "&Theme=" + getCookie("Theme"), "Morgan CRM5", 650, 300);
        }
        function OpenDualCategory() {
            PopupWindowCenter("/Pages/Admin/TemplateCategory.aspx?type=Dual&Company=" + getCookie("Com") + "&Theme=" + getCookie("Theme"), "Morgan CRM4", 650, 300);
        }
        function openBasicDataMaitainance() {

            PopupWindowCenter("/Pages/Admin/BasicDataMaintenance.aspx?Company=" + getCookie("Com") + "&Theme=" + getCookie("Theme"), "Morgan CRM", 770, 420);
        }
        function OpenNoticeDialog() {
            PopupWindowCenter("/Pages/Admin/Notice.aspx?Company=" + getCookie("Com") + "&Theme=" + getCookie("Theme"), "Morgan CRM", 800, 550);
        }
        function OpenAssignRoleDialog() {
            PopupWindowCenter("/Pages/Admin/AssignRole.aspx", "Morgan CRM", 600, 380)
        }

        function OpenBusinessRoleDialog() {
            PopupWindowCenter("/Pages/Admin/BusinessLogo.aspx?Company=" + getCookie("Com") + "&Theme=" + getCookie("Theme"), "Morgan CRM", 601, 471)
        }
    </script>

</asp:content>
